<?php
/**
 * Created by PhpStorm.
 * User: Vlad
 * Date: 1/11/14
 * Time: 4:40 PM
 */

class StatType {

    const UNDEFINED = -1;

    const NumberOfObjects = 1;
    const NumberOfQuestions = 2;
    const GamesPlayed = 3;
    const CorrectGuessesRank1 = 4;
    const GuessesRank210 = 5;
    const GuessesRankOver10 = 6;
    const PrematureGuesses = 7;
    const FailedGuesses = 8;
    const GamesResultingInNewObject = 9;
    const KnowledgeFactor = 10;
    const DroppedGames = 11;

    public static function GetNameFromType($type)
    {
        switch ($type)
        {
            case StatType::NumberOfObjects:
                return "Number of Objects";
            case StatType::NumberOfQuestions:
                return "Number of Questions";
            case StatType::GamesPlayed:
                return "Games Played";
            case StatType::CorrectGuessesRank1:
                return "Correct Guesses (rank = 1)";
            case StatType::GuessesRank210:
                return "Guesses with rank in [2, 10]";
            case StatType::GuessesRankOver10:
                return "Guesses with rank > 10";
            case StatType::PrematureGuesses:
                return "Premature Guesses";
            case StatType::FailedGuesses:
                return "Failed Guesses";
            case StatType::GamesResultingInNewObject:
                return "Games resulting in new Objects";
            case StatType::KnowledgeFactor:
                return "Knowledge Factor";
            case StatType::DroppedGames:
                return "Dropped Games";

        }
    }
} 